package reflect_extend

import "reflect"

// 将[]interface转换为 reflect.
func InterfacesToValue(v []interface{}) []reflect.Value {
	in := make([]reflect.Value, len(v))
	for i, arg := range v {
		in[i] = reflect.ValueOf(arg)
	}
	return in
}
func ValueToInterface(v []reflect.Value) []interface{} {
	result := make([]interface{}, len(v))
	for i, out := range v {
		result[i] = out.Interface()
	}
	return result
}
